package com.lyandwc.lw_bbs.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyandwc.lw_bbs.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryDao extends BaseMapper<Category> {

    List<Category> listFatherCategories();

    List<Category> listSonCategories(int fatherCategoryId);

    void updateCategoryCountById(int id);

}
